::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    box-shadow: inset 0 0 0px rgba(240, 240, 240, 0.5);
    background-color: rgba(100, 100, 100, 0.5);
}

::selection {
    background: rgba(170, 210, 255, 1);
}

.pagebreaker {
    font-family: 'Times New Roman', Times, serif;
    display: block;
    height: 15px;
}

body {
    word-break: break-all;
    font-family: '宋体';
}

@media print {
    .pagebreaker {
        display: none !important;
    }

    html,
    body {
        margin: 0;
    }
}

#_page {
    position: relative;
    z-index: 1;
    outline: 1px solid #ccc;
}

/* 预览模式 */
.preview body {
    background-color: #666;
}

.preview #_page {
    outline: none;
}

h1,
h2,
h3 {
    margin: 0
}

p {
    margin: 0;
    line-height: 1.5
}

input {
    outline: none;
}

textarea {
    outline: none;
}

field {
    outline: none;
    text-decoration: none;
    color: #000;
    min-height: 20px;
}

field[contenteditable=true],
field[type=DateTime],
field[type=DropdownList] {
    background-color: #eff;
}

field[readonly] {
    background-color: #fff;
}

field[contenteditable=true]:focus {
    background-color: #aff;
}

field.blank {
    color: lightgray;
}

field.white-blank {
    color: rgba(255, 255, 255, 0)
}

/* 预览模式 */
.preview field {
    background-color: #fff;
}

/* 预览模式 */
.preview field.blank {
    color: rgba(255, 255, 255, 0)
}


field.error {
    color: red;
}

img {
    max-width: 100%
}

img[type=sign] {
    background-color: #f9f9f9;
}

table {
    border-collapse: collapse;
    border: 1px solid gray;
    word-break: break-all;
}

/* 设计模式 */
.design thead {
    outline: 1px dashed rgba(255, 0, 0, 1);
}

/* 设计模式 */
.design thead::before {
    font-size: xx-small;
    content: '每页打印';
    cursor: pointer;
    white-space: nowrap;
    color: white;
    padding: 0px 5px;
    position: absolute;
    left: -35px;
    background-color: rgba(255, 0, 0, 0.5);
    border-radius: 3px;
}

table td {
    border: 1px solid gray;
    padding: 2px;
    height: 1.5em;
    word-break: break-all;
}

table.noborder td {
    border: none
}

td.selected {
    background-color: rgba(0, 0, 255, 0.1) !important;
}

/* 设计模式 */
.design group {
    outline: 1px dashed blue;
}

.design [tag=true]::before {
    font-size: xx-small;
    content: attr(title);
    cursor: pointer;
    white-space: nowrap;
    color: white;
    padding: 0px 5px;
    position: absolute;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

#_page {
    position: relative;
    z-index: 1;
    outline: 1px solid #ccc;
}

#_dropdownbox,
#_datalist {
    z-index: 2;
    list-style: none;
    position: absolute;
    max-height: 300px;
    overflow: auto;
    cursor: hand;
    outline: none;
    display: none;
    background: #fff;
    border: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px 2px rgb(68 73 77 / 26%);
    border-radius: 4px;
    padding: 1px 0;
}

#_dropdownbox>li,
#_datalist>li {
    padding: 0 10px;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    align-items: center;
}

#_dropdownbox>li:hover,
#_datalist>li:hover {
    background: lightgray;
}

#_contexMenu {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei";
    z-index: 2;
    position: absolute;
    cursor: hand;
    outline: none;
    min-width: 180px;
    display: none;
    background: #fff;
    border: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px 2px rgb(68 73 77 / 26%);
    -webkit-box-shadow: 0 2px 12px 2px rgb(68 73 77 / 26%);
    border-radius: 4px;
    padding: 1px 0px;
    user-select: none;
    -webkit-user-select: none;
}

#_contexMenu>li {
    padding: 0 20px;
    font-size: 12px;
    line-height: 2;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#_contexMenu>li:hover {
    background: lightgray;
}

#_tagPanel,
#_historyPanel {
    position: fixed;
    top: 0;
    z-index: 0;
    padding: 10px;
    height: 100%;
    width: 160px;
    display: none;
    text-align: left;
    overflow-x: hidden;
    text-overflow: ellipsis;
    overflow-y: auto;
    user-select: none;
    -webkit-user-select: none;
}


#_historyList>li,
#_tagList>li {
    cursor: pointer;
    white-space: nowrap;
    /* overflow: hidden; */
    text-overflow: ellipsis;
}

#_historyList>li:hover,
#_tagList>li:hover {
    color: #000;
    font-weight: bold;
}

.shink {
    animation: shink 0.5s infinite;
    animation-iteration-count: 1;
}

@keyframes shink {
    from {
        background-color: #f99;
    }

    to {
        background-color: #eff;
    }
}

.mask {
    -webkit-mask-image: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0.4))
}

.close {
    position: absolute;
    right: 5px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    background-image: url();
}

.apply {
    position: absolute;
    right: 30px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    background-image: url();
}

.pageline {
    Width: 100%;
    height: 0;
    border-top: 1px dashed #999;
    position: absolute;
    color: #999;
    font-size: xx-small;
    text-align: right;
}

.pageline>span {
    position: absolute;
    bottom: 5px;
    right: -35px;
}

.pageline>ft {
    position: absolute;
    top: 5px;
    right: -35px;
}

.message {
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 20px;
    left: 50%;
    padding: 0 5px 1px;
    font-size: 11px;
    color: #fff !important;
    max-width: none;
    background: #ff6969;
    z-index: 1;
    border-radius: 5px;
    user-select: none;
    -webkit-user-select: none;
}

.message::after {
    content: '';
    width: 0;
    height: 0;
    border: 5px solid;
    position: absolute;
    top: -10px;
    left: 5px;
    border-color: transparent transparent #ff6969;
}


:root {
    --remark-width: 200px;
    --remark-height: 50px;
    --oblique-y: 40px;
}


.form .remark {
    background-color: pink;
}

.remark-block {
    position: absolute;
    z-index: 1;
    right: calc(-10px - var(--remark-width));
    padding: 5px;
    box-sizing: border-box;
    width: var(--remark-width);
    background: #fff;
    border-left: solid 2px red;
    box-shadow: 0 2px 8px 2px rgb(68 73 77 / 26%);
    -webkit-box-shadow: 0 2px 8px 2px rgb(68 73 77 / 26%);
    user-select: none;
    -webkit-user-select: none;
}

.revision-block {
    border-left: solid 2px red;
}


.remark-block:hover {
    z-index: 2;
    background: lightyellow;
}

.remark-line {
    position: absolute;
    top: 0;
    left: 0;
}

.remark-note {
    margin-top: 24px;
    padding: 5px;
    box-sizing: border-box;
    max-width: var(--remark-width);
    width: 100%;
    min-height: var(--remark-height);
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.remark-info {
    cursor: pointer;
    position: absolute;
    top: -15px;
    left: -10px;
    width: 15px;
    height: 10px;
    border: 1px solid lightgray;
    background-color: lightyellow;
    border-radius: 3px;
}

.remark-info:before {
    content: "";
    display: inline-block;
    border: 4px solid transparent;
    border-top: 4px solid lightgray;
    position: absolute;
    left: 3px;
    bottom: -8px;
    width: 0;
    height: 0;
}

.remark-block:hover .straight,
.remark-block:hover .oblique {
    border-top: 1px solid red;
}

.remark-block:hover .remark-info {
    border-color: red;
}

.remark-block:hover .remark-info:before {
    border-top-color: red;
}

.straight {
    position: absolute;
    right: calc(100% + var(--oblique-y));
    border-top: 1px dashed red;
}

.oblique {
    position: absolute;
    border-top: dashed 1px red;
    left: calc(-1 * var(--oblique-y));
    width: calc(1.1* var(--oblique-y));
    transform: rotate(30deg);
    transform-origin: top left;
}

.remark-header {
    color: #999;
    font-size: xx-small;
    position: absolute;
    width: 100%;
    height: 24px;
}

.remark-footer {
    font-size: xx-small;
    display: flex;
    justify-content: flex-end;
}

.remark-footer span {
    cursor: pointer;
    margin: 5px;
}

.remark-delete {
    position: absolute;
    width: 24px;
    height: 24px;
    top: 2px;
    right: 2px;
    background-size: contain;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath fill='%23464d5a' d='M17 7.714L12.714 12 17 16.286l-.714.714L12 12.714 7.714 17 7 16.286 11.286 12 7 7.714 7.714 7 12 11.286 16.286 7z'/%3E%3C/svg%3E");
    cursor: pointer;
}

.td-line-style1 {
    outline: none;
    background-color: rgb(255, 255, 255);
    background-image: url("");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}


.td-line-style2 {
    outline: none;
    background-color: rgb(255, 255, 255);
    background-image: url("");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}